/**
 * @description: Login interface parameters
 */
export interface LoginParams {
  username: string;
  password: string;
}

export interface ThirdLoginParams {
  token: string;
  thirdType: string;
}

export interface RoleInfo {
  id: string;
  name: string;
  code: string;
}

/**
 * @description: Login interface return value
 */
export interface LoginResultModel {
  access_token: string;
  token_type: string;
  refresh_token: string;
  expires_in: number;
  scope: string;
  account_type: string;
}

/**
 * @description: Get user information return value
 */
export interface GetUserInfoModel {
  // 角色
  roles: RoleInfo[];
  // 用户id
  id: string;
  // 用户名
  username: string;
  // 真实名字
  realname: string;
  // 昵称
  nickname: string;
  // 头像
  avatar: string;
  // 介绍
  sign?: string;
  // 用户信息
  userInfo?: any;
  // 缓存字典项
  sysAllDictItems?: any;
}

/**
 * @description: Get user information return value
 */
export interface GetResultModel {
  code: number;
  message: string;
  data: object;
  success: Boolean;
}
